package com.xunshangwang.pinhaohuo.ui.fragments.address;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.xunshangwang.pinhaohuo.R;
import com.xunshangwang.pinhaohuo.decorations.DividerItemDecoration;
import com.xunshangwang.pinhaohuo.ui.fragments.BaseFragment;

import tool.library.adapter.BaseRecyclerAdapter;

/**
 * Created by xzp on 16/2/16.
 */
public abstract class BaseAddressFragment extends BaseFragment implements BaseRecyclerAdapter.OnItemClickListener{
    RecyclerView mRecycler;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_select_address,container,false);
        mRecycler= (RecyclerView) view.findViewById(R.id.address_name_list);
        mRecycler.setLayoutManager(new LinearLayoutManager(inflater.getContext()));
        mRecycler.addItemDecoration(new DividerItemDecoration(inflater.getContext()));
        return view;
    }
}
